package com.gavin.consume.consume.service;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: Gavin
 * Description: HelloRemoteHystrix类继承与HelloRemote实现回调的方法
 * Date: 2019/1/17 Time: 10:55
 * Zhan Hong Copyright (c) 2018 All Rights Reserved.
 **/
@Component
public class HelloRemoteHystrix implements HelloRemote {
    @Override
    public String hello2(@RequestParam(value = "name") String name) {
        return "hello" +name+", this messge send failed ";
    }

    @Override
    public String hello1(String name) {
        return "hello" +name+", this messge send failed ";
    }
}
